﻿using Microsoft.Extensions.Configuration;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace NetCoreConfigIntroduce.Options
{
    public class ComplexOptions
    {
        public Option1 option1 { get; set; }
        public Option2 option2 { get; set; }

        public ComplexOptions(IConfiguration config)
        {
            option1 = new Option1(config.GetSection("option1"));
            option2 = new Option2(config.GetSection("option2"));
        }
    }
}
